package com.itheima.pattern.factory.factory_method;



public class Client {
    public static void main(String[] args) {
        CoffeeStroe coffeeStroe = new CoffeeStroe();
        coffeeStroe.setFactory(new AmericanCoffeeFactory());
        Coffee coffee = coffeeStroe.orderCoffee();
        System.out.println(coffee.getName());
    }
}
